package com.qf.pay.service;



import com.qf.pay.param.OrderPayParam;
import com.qf.pay.param.PayStatusParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.function.Consumer;

/**
 * @author zdl
 * @date 2025/4/1
 */
public interface OrderPayService {
    /**
     * 支付
     * @param orderPayParam
     * @return
     */
    String pay(OrderPayParam orderPayParam);

    void notify(HttpServletRequest request, HttpServletResponse response,Integer platformType);
    void notify2(HttpServletRequest request, HttpServletResponse response, Consumer<String> consumer);
    /**
     * 检查交易订单支付状态
     * @param orderNo
     */
    PayStatusParam checkPayStatus(String orderNo, Integer num);

    String refund(String orderNo);

    void returnNotify(HttpServletRequest request, HttpServletResponse response);


    String getToken();
}
